import { Component } from '@angular/core';
import { TabPageInterface } from 'src/app/models/interface/tab-page.interface';

@Component({
  selector: 'app-content-header',
  templateUrl: './content-header.component.html',
  styleUrl: './content-header.component.css'
})
export class ContentHeaderComponent {
  tabs: TabPageInterface[] = [];
  selectedIndex = 0;

  closeTab({ index }: { index: number }): void {
    this.tabs.splice(index, 1);
  }


}
